A Calculus for Hardware Description Languages

نویسندگان

  • Sungwoo Park
  • Jinha Kim
چکیده

In efforts to overcome the complexity of the syntax and the lack of formal semantics in conventional hardware description languages (most notably Verilog and VHDL), a number of approaches based on functional languages have been proposed. The merits of functional languages as hardware description languages can be attributed to the fact that basic building blocks for hardware circuits are equivalent to mathematical functions while functional languages lend themselves to creating and composing mathematical functions. Functional hardware description languages are typically embedded into existing functional languages such as Haskell and ML, or into new functional languages designed specifically for hardware design such as reFL ect. Since its semantics is unaware of hardware circuits, a host language represents hardware circuits as a special datatype. Eventually we convert such a datatype into netlists which describe connections in hardware circuits at the lowest level. Converting a datatype representing hardware circuits into netlists is certainly a necessary step, but makes it an unnecessarily low level task to prove properties of hardware circuits. The reason is that netlists conceal high level descriptions written into a source program and are thus correspondingly more complex to analyze. Such an indirect analysis via netlists can be compared to an analysis of an ordinary functional program in which we first compile it into an assembly language and then analyze the output assembly program instead. We present a new calculus, called l λ, which may serve as a " high level assembly language " for functional hardware description languages. l λ is an assembly language in the sense that its definition consists only of a minimal set of primitive constructs each of which corresponds to a specific method of combining hardware components, e.g., linking two separate hardware components or building feedback circuits. l λ is still a high level language in that it makes no explicit use of low level constructs, such as ports and wires, characterizing netlists. As it extends the syntax and the type system of the standard lambda calculus, l λ is particularly suitable as a substitute for netlists when designing functional hardware description languages. Two characteristic features of l λ are a denotational semantics and a linear type system. The denotational semantics enables us to translate an expression, without evaluating it, into a structural description of hardware components and their connections. It is sound in the sense that it maps expressions only to realiz-able hardware circuits which …

منابع مشابه

A calculus for hardware description

In efforts to overcome the complexity of the syntax and the lack of formal semantics of conventional hardware description languages, a number of functional hardware description languages have been developed. Like conventional hardware description languages, however, functional hardware description languages eventually convert all source programs into netlists, which describe wire connections in...

متن کامل

The Formalisation of a Hardware Description Language in a Proof System: Motivation and Applications

Hardware description languages hdls are a notation to describe behavioural and structural aspects of circuit designs We discuss why it is worthwhile to give a formal semantics for an hdl and why we have encoded such a semantics in a proof system We outline the subset of the hardware description language ella which we use its formal structural operational semantics and its embedding in the highe...

متن کامل

The Formalisation of a Hardware Description

Hardware description languages (hdls) are a notation to describe behavioural and structural aspects of circuit designs. We discuss why it is worthwhile to give a formal semantics for an hdl, and why we have encoded such a semantics in a proof system. We outline the subset of the hardware description language ella 2 which we use, its formal structural operational semantics, and its embedding in ...

متن کامل

Hardware design based on Verilog HDL

Up to a few years ago, the approaches taken to check whether a hardware component works as expected could be classified under one of two styles: hardware engineers in the industry would tend to exclusively use simulation to (empirically) test their circuits, whereas computer scientists would tend to advocate an approach based almost exclusively on formal verification. This thesis proposes a uni...

متن کامل

Towards a Formal Semantics of Verilog Using Duration Calculus

1 I n t r o d u c t i o n Modern hardware design typically uses hardware description languages to express designs at various levels of abstraction. A hardware description language is a high level programming language, with the usual programming constructs such as assignments, conditionals and iterations, and appropriate extensions for real-time, concurrency and data structures suitable for mode...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

متن کامل
عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007